package com.csnf.entity;

public class UserBooks {
      private Integer  book_id;
      private String book_name;
      private int book_year;
      private Integer author_id;
      private UserAuthors authors;
    @Override
    public String toString() {
        return "User{" +
                "book_id=" + book_id +
                ", book_name='" + book_name + '\'' +
                ", book_year='" + book_year + '\'' +
                ", author_id=" + author_id +
                '}';
    }

    public UserBooks() {
    }

    public UserAuthors getAuthors() {
        return authors;
    }

    public void setAuthors(UserAuthors authors) {
        this.authors = authors;
    }

    public Integer getBook_id() {
        return book_id;
    }

    public void setBook_id(Integer book_id) {
        this.book_id = book_id;
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public int getBook_year() {
        return book_year;
    }

    public void setBook_year(int book_year) {
        this.book_year = book_year;
    }

    public Integer getAuthor_id() {
        return author_id;
    }

    public void setAuthor_id(Integer author_id) {
        this.author_id = author_id;
    }

    public UserBooks(Integer book_id, String book_name, int book_year, Integer author_id) {
        this.book_id = book_id;
        this.book_name = book_name;
        this.book_year = book_year;
        this.author_id = author_id;
    }

    public void setUserAuthors(UserAuthors authors){
            this.authors = authors;
    }

    public UserAuthors getUserAuthors(){
      return  this.authors;
    }
}
